import queryString from "querystring";
/**
 * 获取url的query格式化对象
 * @param history
 * @return {*}
 */
export function getUrlSearch(search) {
  return search ? queryString.parse(search.split('?')[1]) : {};
}
